//package com.qk.management.warmer;
//
//import com.qk.management.service.ReportService;
//import jakarta.annotation.PostConstruct;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Component;
//
//
//@Component
//@Slf4j
//public class CacheWarmerPostConstruct {
//    @Autowired
//    private ReportService reportService;
//    // 应用启动后执行（Bean初始化完成后）
//    @PostConstruct
//    public void warmUpCache() {
//       try {
//           log.info("开始缓存预热...");
//           reportService.queryOverview();
//           log.info("缓存预热完成");
//       }catch (Exception e){
//           log.error("缓存预热失败：{}", e.getMessage());
//       }
//    }
//}